//
//  User.swift
//  swiftBase
//
//  Created by 郭艳波 on 2018/3/7.
//  Copyright © 2018年 郭艳波. All rights reserved.
//

import Foundation
import ObjectMapper

class User: Mappable, Codable {
    var id: Int64!
    var phone: String!
    var email: String!
    var password: String!
    var name: String!
    var gender: Int!
    var birthday: Int64!
    var avatar: String!
    var weight: Int!
    var create_time: Int64!
    var update_time: Int64!
    
    required init?(map: Map) {
        
    }
    
    // Mappable
    func mapping(map: Map) {
        id           <- map["id"]
        phone        <- map["phone"]
        email        <- map["email"]
        password     <- map["password"]
        name         <- map["name"]
        gender       <- map["gender"]
        birthday     <- map["birthday"]
        avatar       <- map["avatar"]
        weight       <- map["weight"]
        create_time  <- map["create_time"]
        update_time  <- map["update_time"]
    }
}
